using CMS.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.EFCore.Config;

public class SensitiveWordConfig : IEntityTypeConfiguration<SensitiveWord> {
    public void Configure(EntityTypeBuilder<SensitiveWord> builder) {
        builder.Property(s => s.WordPattern).HasMaxLength(128).IsRequired();
        builder.Property(s => s.ReplaceWord).HasMaxLength(128);
    }
}